package com.geek.bean.vo;

import lombok.Data;
import org.springframework.web.bind.annotation.RestControllerAdvice;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class RegisterInfoVo {
    String code;
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    String mobile;
    @Size(min = 6, max = 12, message = "密码长度必须在6到12之间")
    String password;
    @Size(min = 6, max = 10, message = "用户名长度必须在6到10之间")
    @Pattern(regexp = "^[a-zA-Z0-9]+$",message = "用户名只能包含数字和字母")
    String username;
    String wxCode;
}
